package org.dromara.project.domain.bo;

import org.dromara.project.domain.ContractInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 合同管理业务对象 contract_info
 *
 * @author Lion Li
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ContractInfo.class, reverseConvertGenerate = false)
public class ContractInfoBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 合同编号
     */
    @NotBlank(message = "合同编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractNumber;

    /**
     * 合同名称
     */
    @NotBlank(message = "合同名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contractName;

    /**
     * 归属项目ID
     */
    @NotNull(message = "归属项目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 归属项目名称
     */
    private String projectName;

    /**
     * 签署状态
     */
    private String signingStatus;

    /**
     * 签订日期
     */
    private Date signingDate;

    /**
     * 合同性质
     */
    private String contractNature;

    /**
     * 买方联系人
     */
    private String buyerContact;
    /**
     * 买方单位
     */
    private String buyerCompany;
    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 合同草案存储地址
     */
    private String contractDraft;

    /**
     * 合同附件存储地址
     */
    private String contractAttachment;

    /**
     * 交货时间
     */
    private Date deliveryTime;

    /**
     * 交货地点
     */
    private String deliveryLocation;

    /**
     * 交货条件
     */
    private String deliveryTerms;

    /**
     * 保质期至
     */
    private Date warrantyExpiry;

    /**
     * 合同状态
     */
    private String contractStatus;

    /**
     * 审批人ID
     */
    private Long approverId;

    /**
     * 审批人姓名
     */
    private String approverName;

    /**
     * 拒绝原因
     */
    private String rejectionReason;

    /**
     * 审批时间
     */
    private Date approvalTime;


}
